
<%@ page import="org.tailor.Fabric"%>
<html>
<head>
<meta name="layout" content="mainLayout" />
<g:set var="entityName"
	value="${message(code: 'fabric.label', default: 'Fabric')}" />

</head>
<body>
	<div id="col_middle">

		<h1>
			<g:message code="default.show.label" args="[entityName]" />
		</h1>
		<br />
		<g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
		<div class="show">
			<table>
				<tbody>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="fabric.id.label" default="Id" />
						</td>

						<td valign="top" class="value">
							${fieldValue(bean: fabricInstance, field: "id")}<br />
						<br />
						</td>

					</tr>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="fabric.fabricID.label" default="Fabric ID" />
						</td>

						<td valign="top" class="value">
							${fieldValue(bean: fabricInstance, field: "fabricID")}<br />
						<br />
						</td>

					</tr>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="fabric.fabricName.label" default="Fabric Name" />
						</td>

						<td valign="top" class="value">
							${fieldValue(bean: fabricInstance, field: "fabricName")}<br />
						<br />
						</td>

					</tr>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="fabric.fabricPicture.label" default="Fabric Picture" />
						</td>

						<td><img
							src="<g:createLink controller='fabric' action='renderImage' id='${fieldValue(bean: fabricInstance, field: "id")}'/>"
							width="100" height="100"
							title="${fieldValue(bean: fabricInstance, field: "fabricName")}"
							alt="No Photo" align="absmiddle" /><br />
						<br />
						</td>

					</tr>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="fabric.code.label" default="Code" />
						</td>

						<td valign="top" class="value">
							${fieldValue(bean: fabricInstance, field: "code")}<br />
						<br />
						</td>

					</tr>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="fabric.date.label" default="Date" />
						</td>

						<td valign="top" class="value"><g:formatDate
								date="${fabricInstance?.date}" /><br />
						<br />
						</td>

					</tr>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="fabric.description.label" default="Description" />
						</td>

						<td valign="top" class="value">
							${fieldValue(bean: fabricInstance, field: "description")}<br />
						<br />
						</td>

					</tr>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="fabric.fabricType.label" default="Fabric Type" />
						</td>

						<td valign="top" class="value">
							${fieldValue(bean: fabricInstance, field: "fabricType")}<br />
						<br />
						</td>

					</tr>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="fabric.imported.label" default="Imported" />
						</td>

						<td valign="top" class="value">
							${fieldValue(bean: fabricInstance, field: "imported")}<br />
						<br />
						</td>

					</tr>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="fabric.price.label" default="Price" />
						</td>

						<td valign="top" class="value">
							${fieldValue(bean: fabricInstance, field: "price")}<br />
						<br />
						</td>

					</tr>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="fabric.regionUsed.label" default="Region Used" />
						</td>

						<td valign="top" class="value">
							${fieldValue(bean: fabricInstance, field: "regionUsed")}<br />
						<br />
						</td>

					</tr>

				</tbody>
			</table>

		</div>

		<div class="buttons">
	<g:form>
			<g:hiddenField name="id" value="${fabricInstance?.id}" />
			<span class="button"><g:actionSubmit class="edit"
					action="edit"
					value="${message(code: 'default.button.edit.label', default: 'Edit')}" />
			</span> <span class="button"><g:actionSubmit class="delete"
					action="delete"
					value="${message(code: 'default.button.delete.label', default: 'Delete')}"
					onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
			</span>
</g:form>
		</div>
	</div>
</body>
</html>
